package org.jeecgframework.poi.excel.entity.result;

import java.util.ArrayList;
import java.util.List;

public class ExcelImportError {

    private int row;
    private List<Cell> cells = new ArrayList<>();

    public ExcelImportError() {
    }

    public ExcelImportError(int row) {
        this.row = row;
    }

    public void addError(String cell, String error) {
        cells.add(new Cell(cell, error));
    }

    public int getRow() {
        return row;
    }

    public List<Cell> getCells() {
        return cells;
    }

    public class Cell {
        private String name;
        private String error;

        public Cell() {
        }

        public Cell(String name, String error) {
            this.name = name;
            this.error = error;
        }

        public String getName() {
            return name;
        }

        public String getError() {
            return error;
        }

    }
}
